using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WMSSystem.Domain.Workflow
{
    /// <summary>
    /// WorkflowCore扩展表
    /// </summary>
    public class WorkflowExtensions
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Description("主键ID")]
        [MaxLength(64)]
        [Key]
        public string Id { get; set; }

        /// <summary>
        /// 工作流实例ID
        /// </summary>
        [Description("工作流实例ID")]
        [MaxLength(64)]
        public string WorkflowInstanceId { get; set; }

        /// <summary>
        /// 执行指针ID
        /// </summary>
        [Description("执行指针ID")]
        [MaxLength(64)]
        public string ExecutionPointerId { get; set; }

        /// <summary>
        /// 扩展ID
        /// </summary>
        [Description("扩展ID")]
        [MaxLength(100)]
        public string ExtensionId { get; set; }

        /// <summary>
        /// 是否激活
        /// </summary>
        [Description("是否激活")]
        public bool Active { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        [Description("数据")]
        public string? Data { get; set; }
    }
} 